package com.lagou.edu.user.service.impl;

import com.lagou.edu.user.service.OAuthRemoteService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * feign调用oauth服务创建token失败返回
 *
 * @author lm
 * @since 2021/10/22 10:06
 */
@Component
@Slf4j
public class OAuthRemoteServiceFallback implements OAuthRemoteService {
    @Override
    public String createToken(String phone, String password, String scope, String grantType, String clientId, String clientSecret, String authType) {
        log.error("手机号[{}],发放access_token发生异常", phone);
        return null;
    }
}
